package com.zy.feign.caller.service;

import com.zy.feign.caller.hystrix.FeignTestFallbackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "feign-service", fallback = FeignTestFallbackImpl.class)
public interface FeignTestService {

    @RequestMapping(value = "/test/getData", method = RequestMethod.POST)
    Map<String,Object> getData(@RequestParam("msg") String msg);
}
